<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%-- 页面标题栏 --%>
<div class="title">
	<s:label cssClass="current fl" key="manager.campaignList.title" />
	<s:a href="/manager/home.html" cssClass="back fr">
		[<s:text name="common.button.back" />]
	</s:a>
	<div class="clear"></div>
	<hr class="title" />
</div>

<%-- 页面信息 --%>
<div class="clear titleMessage">
	<s:actionmessage cssClass="fl" />
	<s:actionerror cssClass="fl" />
</div>

<%-- 表格 --%>
<div class="table clear">
	<%-- 表格标题栏 --%>
	<div class="row">
		<div class="cell-table-header w80">
			<s:text name="manager.msgList.restName" />
		</div>
		<div class="cell-table-header w80">
			<s:text name="manager.msgList.submitUserName" />
		</div>
		<div class="cell-table-header w140">
			<s:text name="manager.msgList.submitDate" />
		</div>
		<div class="cell-table-header w300">
			<s:text name="manager.msgList.msgContent" />
		</div>
		<div class="cell-table-header w60">
			<s:text name="common.label.flow.status" />
		</div>
		<div class="cell-table-header w80">
			<s:text name="manager.msgList.replyUserName" />
		</div>
		<div class="cell-table-header w140">
			<s:text name="manager.msgList.replyDate" />
		</div>
		<div class="cell-table-header w80">
			<s:text name="common.label.operations" />
			<s:a action="msgAdd">[<s:text name="common.button.add" />]</s:a>
		</div>
	</div>
	<%-- 循环显示列表 --%>
	<s:iterator value="msgList" var="msgBean">
		<div class="row">
			<div class="cell-border">
				<s:property value="#msgBean.restName" />
			</div>
			<div class="cell-border">
				<s:property value="#msgBean.submitUserName" />
			</div>
			<div class="cell-border">
				<s:date name="#msgBean.submitDate" format="%{#request.dateFormat}" />
			</div>
			<div class="cell-border">
				<s:property value="#msgBean.msgContent" />
			</div>
			<div class="cell-border tac">
				<s:if test="#msgBean.flowStatusId == 0">
					<s:text name="common.flow.status.value0" />
				</s:if>
				<s:if test="#msgBean.flowStatusId == 1">
					<s:text name="common.flow.status.value1" />
				</s:if>
				<s:if test="#msgBean.flowStatusId == 8">
					<s:text name="common.flow.status.value8" />
				</s:if>
			</div>
			<div class="cell-border">
				<s:property value="#msgBean.replyUserName" />
			</div>
			<div class="cell-border">
				<s:date name="#msgBean.replyDate" format="%{#request.dateFormat}" />
			</div>
			<div class="cell-border tac">
				<s:a action="msgView">
					[<s:text name="common.button.view" />]
					<s:param name="msgId" value="#msgBean.msgId"></s:param>
				</s:a>
			</div>
		</div>
	</s:iterator>
</div>